package com.youlin.config;

import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;
import javax.jms.Topic;

@Configuration
@EnableJms
public class ActiveMqConfig {

    @Bean
    public Topic dmTopic() {
        return new ActiveMQTopic("dmTopic");
    }

    @Bean
    public Topic amStatusTopic() {
        return new ActiveMQTopic("amStatusTopic");
    }

    @Bean
    public Topic inlTopic() {
        return new ActiveMQTopic("inlTopic");
    }

    @Bean
    public Topic dmLocalCacheTopic() {
        return new ActiveMQTopic("dmLocalCacheTopic");
    }

    @Bean
    public Topic amStatusLocalCacheTopic() {
        return new ActiveMQTopic("amStatusLocalCacheTopic");
    }

    @Bean
    public Topic inlLocalCacheTopic() {
        return new ActiveMQTopic("inlLocalCacheTopic");
    }

}
